import {lazy} from "react"

const routes=[
    {
        path:"/",
        to:"/home/shouye"
    },
    {
        path:"/home",
        element:lazy(()=>import ("../page/Home")),
        children:[
            {
                path:"/home/shouye",
                element:lazy(()=>import ("../page/component/Shouye"))
            },
            {
                path:"/home/fenlei",
                element:lazy(()=>import ("../page/component/Fenlei"))
            },
            {
                path:"/home/shop",
                element:lazy(()=>import ("../page/component/Shop"))
            },
            {
                path:"/home/main",
                element:lazy(()=>import ("../page/component/Main"))
            }
        ]
    },
    {
        path:"/login",
        element:lazy(()=>import ('../page/Login'))
    }
]

export default routes